//
//  prafix.swift
//  NewWeiBo
//
//  Created by 吴天益 on 2017/7/25.
//  Copyright © 2017年 ttt. All rights reserved.
//

import UIKit
//通知名
let switchWindowRootController = "SwitchWindowRootController"
//点击表情按钮把表情添加到textView上的通知名
let AddFaceToTextView = "addFaceToTextView"
//点击删除按钮的通知名
let DeleteContentOfTextView = "deleteContentOfTextView"
//主页视图间距
let HomeCellMargin: CGFloat = 8
//屏幕宽度,高度
let ScreenWidth = UIScreen.main.bounds.width
let ScreenHeight = UIScreen.main.bounds.height

//  创建随机颜色
func RandomColor() -> UIColor {
    //   产生0-1之间的随机数
    let red = CGFloat(arc4random_uniform(256)) / 255.0
    //   产生0-1之间的随机数
    let green = CGFloat(arc4random_uniform(256)) / 255.0
    //   产生0-1之间的随机数
    let blue = CGFloat(arc4random_uniform(256)) / 255.0
    
    let color = UIColor(red: red, green: green, blue: blue, alpha: 1)
    return color
    
}
